package net.API.IssueLemon.display;

import javax.swing.*;

import java.awt.*;

import static net.API.IssueLemon.display.Display.frame;
import static net.API.IssueLemon.display.Display.root;

public class Button {
    public static void RegisterBA(String s, int x, int y, int width, int height){
        JButton button = new JButton(s);
        button.setBounds(x, y, width, height);
        root.add(button);
    }
    public static void RegisterBB(String s){
        JButton button = new JButton(s);
        root.add(button);
    }
    public static void RegisterWG(int rows, int cols){
        GridLayout layout = new GridLayout(rows, cols);
        root.setLayout(layout);
    }
}
